import Layout from '@/views/layout/Layout'
const assignmentRouter = {
  path: '/assignment',
  component: Layout,
  redirect: '/assignment/index',
  alwaysShow: false, // will always show the root menu
  meta: {
    title: '作业',
    icon: 'form',
    roles: ['student', 'teacher'] // you can set roles in root nav
  },
  children: [{
    path: 'management',
    component: () => import('@/views/assignment/management'),
    name: 'AssignmentManagement',
    meta: {
      title: '管理作业',
      roles: ['teacher'] // or you can only set roles in sub nav
    }
  },
  {
    path: 'dowork',
    component: () => import('@/views/assignment/dowork'),
    name: 'DoWork',
    meta: {
      title: '提交作业',
      roles: ['student'] // or you can only set roles in sub nav
    }
  }]
}
export default assignmentRouter
